package com.quick.DP.FactoryPattern.normal.CarType;

import com.quick.DP.FactoryPattern.Audi;
import com.quick.DP.FactoryPattern.BMW;
import com.quick.DP.FactoryPattern.FactoryType.Tesla;

public class NormalApproach {
    public static void main(String[] args) {
        // 直接创建具体车型对象
        Car bmw = new BMW();
        Car tesla = new Tesla();
        Car audi = new Audi();
        
        // 打印车型清单
        printCarInfo(bmw);
        printCarInfo(tesla);
        printCarInfo(audi);
    }
    
    private static void printCarInfo(Car car) {
        System.out.println("车型: " + car.getModel());
        System.out.println("价格: " + car.getPrice() + "元");
        System.out.println("颜色: " + car.getColor());
        System.out.println("-------------------");
    }
}